/**
 * Created by wxbing (wxbing000@163.com) on 2021/7/27.
 */
const xmlreader = require('xmlreader');
const fs = require("fs");

fs.readFile('./sbc.xml', function (err, data) {
    const xmlString = data.toString();
    console.log(xmlString);
    xmlreader.read(xmlString, function (errors, response) {
        if (errors) {
            console.log(errors)
            return;
        }
        console.log(response.main);
        console.log(response.main.text());
    });
});
